package com.ruoyi.project.gxgw_modules.discountManager.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 用户及其优惠券表 cxj_yhq_owner
 * 
 * @author ruoyi
 * @date 2019-01-25
 */
public class YhqOwner extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 序号 */
	@Excel(name = "id")
	private Integer ownerId;
	/** 用户序号 */
	@Excel(name = "用户id")
	private Integer userId;
	/** 优惠序号 */
	@Excel(name = "优惠券编号")
	private Integer yhqId;
	/** 使用状态 0 已使用 1 正常有效 2 过期 3 已冻结 */
	@Excel(name = "使用状态", readConverterExp = "0=已使用,1=正常有效,2=过期,3=已冻结")
	private Integer useState;
	/** 使用时间 */
	@Excel(name = "使用时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
	private Date useDate;
	/** 删除标记 */
	@JsonIgnore
	private String delFlag;

	public void setOwnerId(Integer ownerId) 
	{
		this.ownerId = ownerId;
	}

	public Integer getOwnerId() 
	{
		return ownerId;
	}
	public void setUserId(Integer userId) 
	{
		this.userId = userId;
	}

	public Integer getUserId() 
	{
		return userId;
	}
	public void setYhqId(Integer yhqId) 
	{
		this.yhqId = yhqId;
	}

	public Integer getYhqId() 
	{
		return yhqId;
	}
	public void setUseState(Integer useState) 
	{
		this.useState = useState;
	}

	public Integer getUseState() 
	{
		return useState;
	}
	public void setUseDate(Date useDate) 
	{
		this.useDate = useDate;
	}

	public Date getUseDate() 
	{
		return useDate;
	}
	public void setDelFlag(String delFlag) 
	{
		this.delFlag = delFlag;
	}

	public String getDelFlag() 
	{
		return delFlag;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ownerId", getOwnerId())
            .append("userId", getUserId())
            .append("yhqId", getYhqId())
            .append("useState", getUseState())
            .append("useDate", getUseDate())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
